package com.neutech.neusys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import com.neutech.neusys.mapper.SettleCategoryMapper;

import com.neutech.neusys.service.SettleService;


import com.neutech.po.SettleCategory;

@Service
public class SettleServiceImpl implements SettleService{
	//增加用户
	//@param：用户对象
	//@return：添加成功==1，添加失败==0
	@Autowired
	private SettleCategoryMapper settleCategoryMapper;
	
	@Override
	public List<SettleCategory> querySettleClass(String info) {
		// TODO Auto-generated method stub
		List<SettleCategory> settleclasslist =  settleCategoryMapper.querySettleClass(info);
		System.out.println(info);
		return settleclasslist;
	}

	@Override
	public int addSettleClass(@RequestParam SettleCategory settleCategory) {
		// TODO Auto-generated method stub
		int num = settleCategoryMapper.addSettleClass(settleCategory);
		return num;
	}

	@Override
	public int updateSettleClass(SettleCategory settleCategory) {
		// TODO Auto-generated method stub
		int num = settleCategoryMapper.updateSettleClass(settleCategory);
		return num;
	}

	@Override
	public int deleteSettleClass(SettleCategory settleCategory) {
		// TODO Auto-generated method stub
		int num = settleCategoryMapper.deleteSettleClass(settleCategory);
		return num;
	}

	
	

}
